import { useStore } from 'vuex'
import { computed } from 'vue'
import { RootState } from '@/store'

export function useVerifyPermission(costomRole: string) {
	const store = useStore<RootState>()
	const role = computed(() => store.state.userInfo.role);
	return role.value === costomRole
}